package com.gitee.muii.echarts.util.types;

import java.io.Serializable;

import lombok.Data;

@Data
public class ComponentOption implements Serializable {
    
    private static final long serialVersionUID = 8884176868600739672L;
    
    protected String mainType;
    protected String type;
    protected String id;
    protected String name;
    protected Long z;
    protected Long zlevel;
    
    public void setId(Object id) {
        if (id instanceof String || id instanceof Long) {
            this.id = String.valueOf(id);
        }
    }
    
    public void setName(Object name) {
        if (name instanceof String || name instanceof Long) {
            this.name = String.valueOf(name);
        }
    }
}
